home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / trueSpace 7.6 / tS761B8Std.exe / {app} / Scripts / MaterialEditor / Bricks / Functions / sqrt.HLSL.Brick.xml < prev    next >
Extensible Markup Language  |  2008-06-10  |  1KB  |  27 lines

  1. <?xml version="1.0" encoding="utf-8" ?> 
  2. <ME_BRICK GUID="{03B53CCD-B4D5-4A04-9032-C97108CA4AC3}" Name="RtSqrt" GUIName="Sqrt" Description="Square root (Per component). [sqrt]">
  3.     <ME_BRICK_INPUTPARAM GUID="{6B8C3E8D-A839-48C2-B819-2C5E7F6EB0AD}" Name="Input" Type="RtNumeric"/>
  4.     <ME_BRICK_OUTPUTPARAM GUID="{04A40C11-225F-47FC-942B-0F84E28DD796}" Name="Result" Type="RtNumeric"/>
  5.     <ME_BRICK_CODE><![CDATA[
  6.         void RtSqrt(in RtFloat Input, out RtFloat Result) {
  7.             Result = rtx_Sqrt(Input);
  8.         }
  9.  
  10.         void RtSqrt(in RtFloat3 Input, out RtFloat3 Result) {
  11.             Result = rtx_Sqrt(Input);
  12.         }
  13.  
  14.         void RtSqrt(in RtFloat4 Input, out RtFloat4 Result) {
  15.             Result = rtx_Sqrt(Input);
  16.         }
  17.  
  18.         void RtSqrt(in RtFloat3x3 Input, out RtFloat3x3 Result) {
  19.             Result = rtx_Sqrt(Input);
  20.         }
  21.  
  22.         void RtSqrt(in RtFloat4x4 Input, out RtFloat4x4 Result) {
  23.             Result = rtx_Sqrt(Input);
  24.         }
  25.     ]]></ME_BRICK_CODE>
  26. </ME_BRICK>
  27.